package ;

/**
 * ...
 * @author 
 */

class SceneCoord2d 
{
	public var row(default, default): Int;
	public var col(default, default): Int;

	
	public function new(?r: Int, ?c: Int) 
	{
		row = (r == null) ? -1 : r;
		col = (c == null) ? -1 : c;
	}
	
	
	inline public function Reset()
	{
		row = col = -1;
	}
	
	
	public function IsValid(): Bool
	{
		if (row >= 0 && col >= 0)
			return true;
		
		return false;
	}
	
	
	public function toString(): String
	{
		return Std.string(row) + ":" + Std.string(col);
	}
}